package com.wn.class30.entity;

import java.io.Serializable;

/**
 * producttype
 * @author 
 */
public class Producttype implements Serializable {
    /**
     * 商品类型id
     */
    private Integer producttypeId;

    /**
     * 商品类型
     */
    private String producttypeName;

    private static final long serialVersionUID = 1L;

    public Integer getProducttypeId() {
        return producttypeId;
    }

    public void setProducttypeId(Integer producttypeId) {
        this.producttypeId = producttypeId;
    }

    public String getProducttypeName() {
        return producttypeName;
    }

    public void setProducttypeName(String producttypeName) {
        this.producttypeName = producttypeName;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Producttype other = (Producttype) that;
        return (this.getProducttypeId() == null ? other.getProducttypeId() == null : this.getProducttypeId().equals(other.getProducttypeId()))
            && (this.getProducttypeName() == null ? other.getProducttypeName() == null : this.getProducttypeName().equals(other.getProducttypeName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getProducttypeId() == null) ? 0 : getProducttypeId().hashCode());
        result = prime * result + ((getProducttypeName() == null) ? 0 : getProducttypeName().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", producttypeId=").append(producttypeId);
        sb.append(", producttypeName=").append(producttypeName);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}